Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

330
Views
Gulp 4 async-done error: TypeError [ERR_INVALID_ARG_TYPE]: The "time" argument must be an instance of Array. Received null?

Setting up local dev on an existing project. Had to update to Gulp 4 to maintain other dependencies. Went through gulpfile.js and changed task formatting. Here's a typical task in my current gulpfile:

async function images() {
  return gulp
    .src('assets/img/**/*')
    .pipe(newer('assets/build/img'))
    .pipe(imagemin())
    .pipe(gulp.dest('assets/build/img'))
    .pipe(notify({ message: 'Images task complete' }));
}

gulp.task(images);

A package called async-done is throwing this error when I run any task: TypeError [ERR_INVALID_ARG_TYPE]: The "time" argument must be an instance of Array. Received null

Has anyone run into this while updating to Gulp 4?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!